package com.arpa.oms.service;

import com.arpa.oms.domain.dto.OmsInventoryDTO;
import com.arpa.oms.domain.dto.OmsOrderSetDTO;
import com.arpa.oms.domain.entity.OmsInventory;
import com.arpa.oms.domain.entity.OmsOrderSet;
import com.arpa.oms.domain.vo.OmsInventoryVO;
import com.arpa.oms.domain.vo.OmsOrderSetVO;
import com.arpa.wms.domain.enums.StatusEnum;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


/**
 * <p>
 * OMS接单设置服务类
 * </p>
 *
 * @author rfwang
 * @since 2021-08-10
 */
public interface IOmsOrderSetService extends IService<OmsOrderSet> {

    /**
     * 查询列表
     * @param orderSetDTO
     * @return
     */
    List<OmsOrderSetVO> queryList(OmsOrderSetDTO orderSetDTO);

    /**
     * 查询合计,包含总数
     * @param orderSetDTO
     * @return
     */
    OmsOrderSetVO queryListSum(OmsOrderSetDTO orderSetDTO);

    /**
     * 添加接单设置
     * @param entity
     */
    @Override
    boolean save(OmsOrderSet entity);

    /**
     * 根据code更新实体
     * @param entity
     * @return
     */
    int updateByCode(OmsOrderSet entity);

    Map<String,Object> activeStatus(List<String> code, StatusEnum active);

}
